<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RoleUser extends Model
{
    protected $table = 'role_user';

    protected $fillable = ['user_id', 'role_id', 'mall_id'];

    public function role(){
        return $this->belongsTo(Role::class,'role_id','id');
    }
}
